<%@ page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="action" scope="request" class="com.pubpage.flow.flow_search.Action" />
<jsp:useBean id="view" scope="request" class="com.pubpage.flow.flow_search.View" />
<jsp:useBean id="DataViewForm" scope="request" class="com.pub.database.DataViewForm"/>
<jsp:setProperty name="view" property="*" />
<!-- 以下為DataView 共用設定 -->
<jsp:setProperty name="DataViewForm" property="submitMethod" value="POST"/>
<jsp:setProperty name="DataViewForm" property="pageRowCount" value="10"/>
<jsp:setProperty name="DataViewForm" property="nowPageNum"/>
<jsp:setProperty name="DataViewForm" property="dataViewAction"/>
<jsp:setProperty name="DataViewForm" property="filterCol"/>
<jsp:setProperty name="DataViewForm" property="filterValue"/>
<jsp:setProperty name="DataViewForm" property="dvOrderByFields"/>
<jsp:setProperty name="DataViewForm" property="dvOrderBySeq"/>
<!-- DataView 設定結束 -->
<%if (action.action(pageContext).equals("login")) {return;} %>
<html>
<head>
<title><%=view.getPrgTitle()%></title>
<LINK HREF="/PUBPAGE/general/workflow.css" REL="STYLESHEET" TYPE="TEXT/CSS">
<script type="text/javascript" language="javascript1.2" src="/PUBPAGE/general/commscript.js"></script>
<script type="text/javascript" language="javascript1.2" src="/PUBPAGE/general/flow_search.js"></script>
<script type="text/javascript" language="javascript1.2" src="/PUBPAGE/general/calendar.js"></script>
<!--script type="text/javascript" language="javascript1.2">
</script-->
</head>
<body bgcolor="#ffffff" onLoad="javascript:<%=view.getOnloadScript()%>">
<TABLE BORDER="0" HEIGHT="20" CELLPADDING="0" CELLSPACING="0">
  <TR>
    <TD  BACKGROUND="/PUBPAGE/pub_images/title/title_bg.gif"><DIV ALIGN="LEFT"><IMG SRC="/PUBPAGE/pub_images/title/title01.gif" WIDTH="18" HEIGHT="24" HSPACE="0" alt=""/><IMG SRC="/PUBPAGE/pub_images/glass.gif" WIDTH="12" HEIGHT="8" alt=""/></DIV></TD>
    <TD ALIGN="LEFT" HEIGHT="20" VALIGN="MIDDLE" BACKGROUND="/PUBPAGE/pub_images/title/title_bg.gif" CLASS="TITLE"><%=view.getPrgTitle()%></TD>
    <TD BACKGROUND="/PUBPAGE/pub_images/title/title_bg.gif"><DIV ALIGN="RIGHT"><IMG SRC="/PUBPAGE/pub_images/gglass.gif" WIDTH="12" HEIGHT="8" alt=""/><IMG SRC="/PUBPAGE/pub_images/title/title02.gif" WIDTH="18" HEIGHT="24" HSPACE="0" alt=""/></DIV></TD>
  </TR>
</TABLE>
<br/>
<form name="search_form" method="post" action="flow_search.jsp">
<input type="hidden" name="db_alias" value="<%=view.getdb_alias()%>">
<input type="hidden" name="db_debug" value="<%=view.getdb_debug()%>">
<input type="hidden" name="source_charset" value="<%=view.getsource_charset()%>">
<input type="hidden" name="target_charset" value="<%=view.gettarget_charset()%>">
<input type="hidden" name="flow_code" value="<%=view.getFlow_code()%>">
<input type="hidden" name="flow_main_table" value="<%=view.getFlow_main_table()%>">
  <TABLE BORDER="0" WIDTH="540px" CELLSPACING="1" CELLPADDING="0" >
    <TR>
      <TD CLASS="td_head"><%=view.getFind_flow_num_title()%></TD>
      <TD  CLASS="td_content"><input name="find_flow_num" type="TEXT" class="input" id="find_flow_num" value="<%=view.getFind_flow_num()==null ? "" : view.getFind_flow_num()%>" size="13" ></TD>
      <TD CLASS="td_head" ><%=view.getFind_status_title()%> </TD>
      <TD CLASS="td_content">
        <select name="find_status" CLASS="select">
          <option value=""></option>
          <%=(view.getFind_status_list()==null ? "" : view.getFind_status_list()) %>
        </select>
      </TD>
    </TR>
    <TR>
      <TD CLASS="td_head"><%=view.getFind_empno_title()%></TD>
      <TD  CLASS="td_content">
        <acronym title="<%=view.getMouse_double_click_tips()%>">
          <input type="TEXT" name="find_empno" class="input_window hand" value="<%=view.getFind_empno()==null ? "" : view.getFind_empno()%>" size="8" onDblClick="javascript:evt_find_empno_ondblclick(this);" >
        </acronym>
      </TD>
      <TD CLASS="td_head"><%=view.getFind_empno_app_title()%></TD>
      <TD  CLASS="td_content">
        <acronym title="<%=view.getMouse_double_click_tips()%>">
          <INPUT NAME="find_empno_app" TYPE="TEXT" CLASS="input_window hand" id="find_empno_app" onDblClick="javascript:evt_find_empno_app_ondblclick(this);" VALUE="<%=view.getFind_empno_app()==null ? "" : view.getFind_empno_app()%>" SIZE="8" >
        </acronym>
      </TD>
    </TR>
    <TR>
      <TD CLASS="td_head"><%=view.getFind_app_date_title_from()%></TD>
      <TD  CLASS="td_content"><acronym title="<%=view.getMouse_double_click_tips()%>">
        <input name="find_app_date_from" type="TEXT" class="input_window hand" id="find_app_date_from" readonly="readonly" value="<%=view.getFind_app_date_from()==null ? "" : view.getFind_app_date_from()%>" size="10" ONDBLCLICK="javascript:jsf_calendar(document.search_form.find_app_date_from,this);"></acronym></TD>
      <TD CLASS="td_head"><%=view.getFind_app_date_title_to()%></TD>
      <TD  CLASS="td_content"><acronym title="<%=view.getMouse_double_click_tips()%>">
        <input name="find_app_date_to" type="TEXT" class="input_window hand" id="find_app_date_to" readonly="readonly" value="<%=view.getFind_app_date_to()==null ? "" : view.getFind_app_date_to()%>" size="10" ONDBLCLICK="javascript:jsf_calendar(document.search_form.find_app_date_to,this);"/></acronym></TD>
    </TR>
    <TR>
      <TD colspan="4" align="center" nowrap>
        <input type="button" name="btnQuery" value="<%=view.getBtnQueryTitle()%>" class="button b_normal" onclick="javascript:evt_btnQuery_onclick();">
       <input type="button" name="btnCancel" value="<%=view.getBtnCancelTitle()%>" class="button b_normal" onclick="evt_btnCancel_onclick();">
      </TD>
    </TR>
  </TABLE>
</form>
<div id="divDataView"><%=(view.getDataViewHtml()==null ? "" : view.getDataViewHtml())%></div>
</body>
</html>
